{include file=header.html}

<script type="text/javascript">
    $(function() {
        $('#page-job-apply_form').validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('td').next('td');
                error_td.find('.field_notice').hide();
                error_td.find('.red').hide();
                error_td.append(error);
            },
            success: function(label) {
                label.addClass('validate_right').text('OK!');
            },
            onkeyup: false,
            rules: {
                name: {
                    required: true
                },
                telephone: {
                    required: true,
                    minlength: 6,
                    checkTel: true
                }
            },
            messages: {
                name: {
                    required: '{$lang.user_required}'
                },
                telephone: {
                    required: '{$lang.telephone_required}',
                    minlength: '{$lang.telephone_error}',
                    checkTel: '{$lang.telephone_error}'
                }
            }
        });
    });
</script>
<div id="main" class="w-full">
    <div id="page-job-apply" class="w mb20 pt10 clearfix">

        <div class="col-sub">
            <div class="mt">{$lang.recruitment}</div>
            <div class="mc">
                <dl>
                    <dt><a href="{url app=job}" title="{$lang.recruitment}"><span>{$lang.recruitment}</span></a></dt>
                </dl>
                <dl>
                    <dt class="on"><a href="{url app=job_apply&act=add}" title="{$lang.recruitment}"><span>{$lang.online_apply}</span></a></dt>
                </dl>
            </div>
        </div>

        <div class="col-main">
            <div class="mt">
                <span>{$lang.recruitment}</span>
            </div>
            <div class="mc">
                <form method="post" id="page-job-apply_form">
                    <table style="width:100%;">
                        <tr>
                            <th>{$lang.position}:</th>
                            <td>
                                <select name="job_id" id="job_id">
                                    <!--{foreach from=$jobs item=job}-->
                                    <option value="{$job.job_id}" <!--{if $job.job_id eq $id}--> selected="selected"<!--{/if}-->>{$job.position}</option>
                                    <!--{/foreach}-->
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>{$lang.name}:</th>
                            <td><input type="text" name="name" id="name" value="" /></td>
                            <td><span class="red">*</span></td>
                        </tr>
                        <tr>
                            <th>{$lang.sex}:</th>
                            <td>
                                <input name="sex" type="radio" id="sex" value="0" checked="checked">
                                <label>{$lang.gentleman}</label>
                                <input name="sex" type="radio" id="sex" value="1">
                                <label>{$lang.lady}</label>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.birthday}:</th>
                            <td><input type="text" name="birthday" id="birthday" value="" /></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.native_place}:</th>
                            <td><input type="text" name="native_place" id="native_place" value="" /></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.telephone}:</th>
                            <td><input type="text" name="telephone" id="telephone" value="" /></td>
                            <td><span class="red">*</span></td>
                        </tr>
                        <tr>
                            <th>{$lang.zip_code}:</th>
                            <td><input type="text" name="zip_code" id="zip_code" value="" /></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.email}:</th>
                            <td><input type="text" name="email" id="email" value="" /></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.education}:</th>
                            <td><input type="text" name="education" id="education" value="" /></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.professional}:</th>
                            <td><input type="text" name="professional" id="professional" value="" /></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.school}:</th>
                            <td><input type="text" name="school" id="school" value="" /></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.address}:</th>
                            <td><input type="text" name="address" id="address" value="" /></td>
                            <td></td>
                        </tr>

                        <tr>
                            <th>{$lang.awards}:</th>
                            <td><textarea name="awards" cols="50" rows="5"></textarea></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.experience}:</th>
                            <td><textarea name="experience" cols="50" rows="5"></textarea></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th>{$lang.hobbies}:</th>
                            <td><textarea name="hobbies" cols="50" rows="5"></textarea></td>
                            <td></td>
                        </tr>
                        <tr>
                            <th></th>
                            <td><input type="submit" value="{$lang.save_edit}" /></td>
                            <td></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>


    </div>
</div>








{include file=footer.html}